# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-pytools
pkgver=2020.4
pkgrel=0
pkgdesc="Collection of tools for Python3"
url="https://github.com/inducer/pytools"
# mips blocked due to py3-numpy
arch="noarch !mips !mips64"
license="MIT"
depends="python3 py3-decorator py3-appdirs py3-six py3-numpy"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/inducer/pytools/archive/v$pkgver.tar.gz"
builddir="$srcdir/pytools-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="afb9a5dff5fd4331f63ed3edd49fa4948324e3fca9061596e6e94e3f5a017925f9228b1dbf550215bf1202d83e1d0af7625c619ddc387d8c4c506c7d84f35637  py3-pytools-2020.4.tar.gz"
